<?php $this->pageTitle     = 'Liên hệ' . '-' . Option::getItem('site_name'); ?>
<?php
$this->meta_desc     = 'Liên hệ';
$this->meta_keywords = 'Liên hệ';
?>
<div class="content">
    <div class="main-wrap">
        <div class="colum-right fl product-hl">
            <br>
            <?php
            $form                = $this->beginWidget('CActiveForm', array(
                'id'                     => 'Contact-Form',
                'enableClientValidation' => true,
                'htmlOptions'            => array(
                    'class' => 'form-horizontal'
                )
            ));
            ?>
            <?php if (Yii::app()->user->hasFlash('contact')): ?>
                <div class="alert alert-info">
                    <?php echo Yii::app()->user->getFlash('contact'); ?>
                </div>
            <?php endif; ?>
            <div class="control-group">
                <?php echo $form->labelEx($model, 'name', array('class' => 'control-label')); ?>
                <div class="controls">
                    <?php echo $form->textField($model, 'name', array('class' => 'input-xlarge', 'placeholder' => "  Nhập họ tên gửi...")); ?>
                </div>
                <font><?php echo $form->error($model, 'name', array('class' => 'err')); ?></font>
            </div>
            <div class="control-group">
                <?php echo $form->labelEx($model, 'phone', array('class' => 'control-label')); ?>
                <div class="controls">
                    <?php echo $form->textField($model, 'phone', array('class' => 'input-xlarge', 'placeholder' => "  Nhập số điện thoại của bạn...")); ?>
                </div>
                <font><?php echo $form->error($model, 'phone', array('class' => 'err')); ?></font>
            </div>
            <div class="control-group">
                <?php echo $form->labelEx($model, 'email', array('class' => 'control-label')); ?>
                <div class="controls">
                    <?php echo $form->textField($model, 'email', array('class' => 'input-xlarge', 'placeholder' => "  Nhập địa chỉ email của bạn...")); ?>
                </div>
                <font><?php echo $form->error($model, 'email', array('class' => 'err')); ?></font>
            </div>
            <div class="control-group">
                <?php echo $form->labelEx($model, 'title', array('class' => 'control-label')); ?>
                <div class="controls">
                    <?php echo $form->textField($model, 'title', array('class' => 'input-xlarge', 'placeholder' => "  Nhập tiêu đề liên hệ...")); ?>
                </div>
                <font><?php echo $form->error($model, 'title', array('class' => 'err')); ?></font>
            </div>
            <div class="control-group">
                <?php echo $form->labelEx($model, 'content', array('class' => 'control-label')); ?>
                <div class="controls">
                    <?php echo $form->textarea($model, 'content', array('class' => 'input-xxlarge', 'rows' => 8, 'placeholder' => "  Nhập nội dung liên hệ...")); ?>
                </div>
                <font><?php echo $form->error($model, 'content', array('class' => 'err')); ?></font>
            </div>
            <?php if (CCaptcha::checkRequirements()): ?>
                <div class="control-group">
                    <label class="control-label">&ApplyFunction;</label>
                    <div class="controls">
                        <?php $this->widget('CCaptcha'); ?>
                    </div>
                </div>
                <div class="control-group">
                    <?php echo $form->labelEx($model, 'verifyCode', array('class' => 'control-label')); ?>
                    <div class="controls">
                        <?php echo $form->textField($model, 'verifyCode', array('class' => 'span3 input-contact')); ?>
                        <?php echo $form->error($model, 'verifyCode'); ?>
                    </div>
                </div>
            <?php endif; ?>
            <div class="control-group">
                <div class="controls">
                    <button type="submit" class="btn btn-primary">Gửi liên hệ</button>
                </div>
            </div>
            <?php $this->endWidget(); ?>

        </div>
        <div class="fr colum-left mr-r-none">
            <!--box hotline-->
            <?php echo $this->renderPartial('//layouts/box_hotline') ?>
            <!-- end box hotline-->
        </div>
        <div class="clear"></div>
        <br>

    </div>
</div>